package {{package_name}}.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.capybara.account.base.MyWrappers;
import {{package_name}}.model.vos.{{ pascal_case }}VO;
import {{package_name}}.mapper.{{ pascal_case }}Mapper;
import {{package_name}}.model.pos.{{ pascal_case }}PO;
import {{package_name}}.model.querys.{{ pascal_case }}Query;
import {{package_name}}.service.I{{ pascal_case }}Service;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;   
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Service;

import java.util.Collection; 

/**
 * 用户 服务实现类
 *
 * @author wgc
 * @since 2024-09-12
 */
@Service()
public class {{ pascal_case }}ServiceImpl extends ServiceImpl<{{ pascal_case }}Mapper, {{ pascal_case }}PO> implements I{{ pascal_case }}Service {
    /**
     * 查询分页 
     * @param param 参数
     * @return 分页结果
     */
    @Override
    public Page<{{ pascal_case }}VO> findPage({{ pascal_case }}Query param) {
        return MyWrappers.queryJoin({{ pascal_case }}PO.class,param)
            .pageDeep({{ pascal_case }}VO.class);
    }

    /**
     * 导出
     */
    @Override
    public void export({{ pascal_case }}Query param, HttpServletResponse response) {

    }

    /**
     * 保存用户
     *
     * @param param 参数
     * @return boolean
     */
    @Override
    public boolean save({{ pascal_case }}PO param) {
         return super.save(param);
    }


    /**
     * 按 ID 更新
     *
     * @param param 参数
     * @return boolean
     */
    @Override
    public boolean updateById({{ pascal_case }}PO param) {
         return super.updateById(param);
    }

    /**
     * 按 ID 移除
     *
     * @param ids 列表
     * @return boolean
     */
    @Override
    public boolean removeByIds(Collection<?> ids) {
        return super.removeByIds(ids);
    }

}
